<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkHandleBox</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="MiscObjects.html" title="杂项">
<link rel="prev" href="gtk3-GtkEventBox.html" title="GtkEventBox">
<link rel="next" href="gtk3-GtkIMContextSimple.html" title="GtkIMContextSimple">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-GtkEventBox.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="MiscObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkIMContextSimple.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkHandleBox.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkHandleBox.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkHandleBox"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkHandleBox.top_of_page"></a>GtkHandleBox</span></h2>
<p>GtkHandleBox</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkHandleBox.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox">GtkHandleBox</a>;
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkHandleBox.html#gtk-handle-box-new" title="gtk_handle_box_new ()">gtk_handle_box_new</a>                  (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkHandleBox.html#gtk-handle-box-set-shadow-type" title="gtk_handle_box_set_shadow_type ()">gtk_handle_box_set_shadow_type</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="type">GtkShadowType</span></a> type</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkHandleBox.html#gtk-handle-box-set-handle-position" title="gtk_handle_box_set_handle_position ()">gtk_handle_box_set_handle_position</a>  (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> position</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkHandleBox.html#gtk-handle-box-set-snap-edge" title="gtk_handle_box_set_snap_edge ()">gtk_handle_box_set_snap_edge</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> edge</code></em>);
<a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>     <a class="link" href="gtk3-GtkHandleBox.html#gtk-handle-box-get-handle-position" title="gtk_handle_box_get_handle_position ()">gtk_handle_box_get_handle_position</a>  (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>);
<a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="returnvalue">GtkShadowType</span></a>       <a class="link" href="gtk3-GtkHandleBox.html#gtk-handle-box-get-shadow-type" title="gtk_handle_box_get_shadow_type ()">gtk_handle_box_get_shadow_type</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>);
<a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>     <a class="link" href="gtk3-GtkHandleBox.html#gtk-handle-box-get-snap-edge" title="gtk_handle_box_get_snap_edge ()">gtk_handle_box_get_snap_edge</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkHandleBox.html#gtk-handle-box-get-child-detached" title="gtk_handle_box_get_child_detached ()">gtk_handle_box_get_child_detached</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkHandleBox.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkHandleBox.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkHandleBox"></a><h3>struct GtkHandleBox</h3>
<pre class="programlisting">struct GtkHandleBox {
  GtkBin bin;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-handle-box-new"></a><h3>gtk_handle_box_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_handle_box_new                  (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-handle-box-set-shadow-type"></a><h3>gtk_handle_box_set_shadow_type ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_handle_box_set_shadow_type      (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="type">GtkShadowType</span></a> type</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-handle-box-set-handle-position"></a><h3>gtk_handle_box_set_handle_position ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_handle_box_set_handle_position  (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> position</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-handle-box-set-snap-edge"></a><h3>gtk_handle_box_set_snap_edge ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_handle_box_set_snap_edge        (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> edge</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-handle-box-get-handle-position"></a><h3>gtk_handle_box_get_handle_position ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>     gtk_handle_box_get_handle_position  (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>);</pre>
<p>
Gets the handle position of the handle box. See
<a class="link" href="gtk3-GtkHandleBox.html#gtk-handle-box-set-handle-position" title="gtk_handle_box_set_handle_position ()"><code class="function">gtk_handle_box_set_handle_position()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>handle_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the current handle position.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-handle-box-get-shadow-type"></a><h3>gtk_handle_box_get_shadow_type ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="returnvalue">GtkShadowType</span></a>       gtk_handle_box_get_shadow_type      (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>);</pre>
<p>
Gets the type of shadow drawn around the handle box. See
<a class="link" href="gtk3-GtkHandleBox.html#gtk-handle-box-set-shadow-type" title="gtk_handle_box_set_shadow_type ()"><code class="function">gtk_handle_box_set_shadow_type()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>handle_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the type of shadow currently drawn around the handle box.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-handle-box-get-snap-edge"></a><h3>gtk_handle_box_get_snap_edge ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>     gtk_handle_box_get_snap_edge        (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>);</pre>
<p>
Gets the edge used for determining reattachment of the handle box. See
<a class="link" href="gtk3-GtkHandleBox.html#gtk-handle-box-set-snap-edge" title="gtk_handle_box_set_snap_edge ()"><code class="function">gtk_handle_box_set_snap_edge()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>handle_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the edge used for determining reattachment, or (GtkPositionType)-1 if this
is determined (as per default) from the handle position.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-handle-box-get-child-detached"></a><h3>gtk_handle_box_get_child_detached ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_handle_box_get_child_detached   (<em class="parameter"><code><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a> *handle_box</code></em>);</pre>
<p>
Whether the handlebox's child is currently detached.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>handle_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the child is currently detached, otherwise <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>